package com.spm.librarianmanagersystem.service;

import com.alibaba.fastjson.JSONArray;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonArrayFormatVisitor;
import com.spm.librarianmanagersystem.pojo.Book;
import com.spm.librarianmanagersystem.utils.JsonResult;

import java.util.List;
import java.util.Map;

/**
 * @Author: 苏成
 * @Date: 2022/04/07/11:28
 * @Description:
 */
public interface BookService {
    JSONArray getAllBook(int page_size, int current_page);

    JSONArray getABook(String isbn);

    void updateBook(Book book);

    boolean addBook(Map map);

    boolean delete(List isbns);

    boolean addBookBook(Map map);

    void updateBookLocation(String ISBN, Integer book_id);

    boolean updateScore(String ISBN);

    JSONArray getBorrowedBook();

    JSONArray getMostPopularBook();
}
